using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAO;
using DTO;
namespace BUS
{
    public class TaiKhoanBUS
    {
        public DataTable LayBangTaiKhoan()
        {
            DataTable dt;
            TaiKhoanDAO tkDao = new TaiKhoanDAO();
            dt = tkDao.LayBangTaiKhoan();
            return dt;
        }

        public void ThemUser(TaiKhoanDTO tkDto)
        {
            TaiKhoanDAO tkDao = new TaiKhoanDAO();
            tkDao.ThemUser(tkDto);
        }

        public void XoaUser(string maTk)
        {
            TaiKhoanDAO tkDao = new TaiKhoanDAO();
            tkDao.XoaUser(maTk);
        }

        public void SuaUser(TaiKhoanDTO tkDto)
        {
            TaiKhoanDAO tkDao = new TaiKhoanDAO();
            tkDao.SuaUser(tkDto);
        }
        public DataTable TimKiemUser (string Username)
        {
            DataTable dt;
            TaiKhoanDAO tkDao = new TaiKhoanDAO();
            dt = tkDao.TimKiemUser(Username);
            return dt;
        }
    }
}
